import requests


#登录/获取token

#头部



#上传文件


#上传日志



#获取

#获取所有logId
# logIds=[]
# ick=ckjson['datas']['list']
# for i in ick:
#     logIds.append(i['logId'])
# print(logIds)


#更新



#删除


url='http://192.168.88.132/user.php'
date={'username':'XXX_12',
      'password':'abc123',
      'act':'act_login',
      'back_at':'http%3A%2F%2F192.168.88.132%2F',
      'submit':''}
ec=requests.post(url=url,data=date)
# print(ec.text)
h=ec.headers['Set-Cookie']
cc={'COOKIE':h}
ly={'msg_type':0,
    'msg_title':'1',
    'msg_content':'1',
    'act':'act_add_message'}
ad=requests.post(url=url,data=ly,headers=cc)
